home *** CD-ROM | disk | FTP | other *** search
/ Space Simulation Series 1: Lift Off / Liftoff Space Simulation Series Part 1 (ETI Entertainment)(2002).iso / Liftoff / Flash / fish_flash movies.swf / scripts / DefineButton2_84 / BUTTONCONDACTION on(release).as
Text File  |  2002-08-20  |  1KB  |  29 lines

  1. on(release){
  2.    if(_parent.actions.gameState == "1")
  3.    {
  4.       if(_parent.fish_tank._currentframe == 12)
  5.       {
  6.          _parent.fish_tank.gotoAndPlay("gotosquarewater");
  7.          _parent.actions.waterExpandSound();
  8.       }
  9.       else if(_parent.fish_tank._currentframe == 23)
  10.       {
  11.          _parent.fish_tank.gotoAndPlay("gotosquaretank");
  12.          _parent.actions.waterExpandSound();
  13.       }
  14.       _parent.infopanel.gotoAndStop(4);
  15.       _parent.fish_tank.bubbler.gotoAndStop(1);
  16.       _parent.fish_tank.bubbler.bubbles.bubbles1.gotoAndPlay(2);
  17.       _parent.fish_tank.bubbler.bubbles.bubbles2.gotoAndPlay(2);
  18.       _parent.actions.gravity = "normal";
  19.       _parent.actions.lightState = 0;
  20.       _parent.actions.lightRotation = 0;
  21.       _parent.actions.orientFish();
  22.       _parent.gravity_micro.gotoAndStop(1);
  23.       _parent.fish_tank.fish2._visible = 1;
  24.       _parent.fish_tank.fish1.swimming.fishButton.gotoAndStop(1);
  25.       _parent.actions.gravityButtonSound();
  26.       gotoAndStop(2);
  27.    }
  28. }
  29.